import styled from "styled-components";

export const TransactionAmountRankItemWrap = styled.div<{
  containerBg: string;
}>`
  display: flex;
  align-items: center;
  flex: 1;
  min-height: 32px;

  background: #111c3c; /* fallback for old browsers */

  background: ${(p) => p.containerBg};
`;

export const IndexStyle = styled.div<{ primaryColor: string }>`
  width: 42px;
  margin: 0 8px;

  font-size: 18px;

  font-weight: bold;
  font-style: italic;
  color: ${(p) => p.primaryColor};
  text-align: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
`;

export const NameStyle = styled.div`
  font-size: 14px;

  font-weight: 400;
  font-style: italic;
  color: #d5e7ff;
  flex: 1;
  padding-right: 30px;

  white-space: nowrap;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
`;

export const AmountStyle = styled.div<{ primaryColor: string }>`
  font-size: 14px;

  font-weight: 400;
  font-style: italic;
  color: #d5e7ff;
  min-width: 19%;
  color: ${(p) => p.primaryColor};
  text-align: right;
  padding-right: 20px;
`;
